package com.demo.core.model;

import java.util.Date;
import java.util.List;

import com.demo.core.model.support.NestedSetModel;

/**
 * 站点功能模型
 * 记录站点所持有的所有功能
 * 
 * @author ryuu.kk
  */
public class SiteFunction extends NestedSetModel {

	/**
	 * 版本序列化ID
	 */
	private static final long serialVersionUID = 5105730800454899545L;
	
	/**
	 * 站点外键ID
	 */
	private Long siteId;
	
	/**
	 * 主键ID
	 */
	private Long originalId;
	
	/**
	 * 功能外键ID
	 */
	private Long functionId;
	
	/**
	 * 站点功能可用标志
	 */
	private boolean enabled;
	
	/**
	 * 站点功能状态
	 */
	private String status;
	
	/**
	 * 优先级
	 */
	private int priority;
	
	/**
	 * 创建用户
	 */
	private Long createUser;
	
	/**
	 * 创建时间
	 */
	private Date createDate;
	/**
	 * 修改用户
	 */
	private Long modifyUser;
	
	/**
	 * 修改时间
	 */
	private Date modifyDate;
	
	/**
	 * 备注
	 */
	private String notes;
	
	/**
	 * 站点模型
	 */
	private Site site;
	
	/**
	 * 功能模型
	 */
	private Function function;
	
	/**
	 * 角色列表
	 */
	private List<String> roleList;
	
	public Long getOriginalId() {
		return originalId;
	}
	public void setOriginalId(Long originalId) {
		this.originalId = originalId;
	}
	public Long getSiteId() {
		return siteId;
	}
	public void setSiteId(Long siteId) {
		this.siteId = siteId;
	}
	public Long getFunctionId() {
		return functionId;
	}
	public void setFunctionId(Long functionId) {
		this.functionId = functionId;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public int getPriority() {
		return priority;
	}
	public void setPriority(int priority) {
		this.priority = priority;
	}
	public Long getCreateUser() {
		return createUser;
	}
	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Long getModifyUser() {
		return modifyUser;
	}
	public void setModifyUser(Long modifyUser) {
		this.modifyUser = modifyUser;
	}
	public Date getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	public String getNotes() {
		return notes;
	}
	public void setNotes(String notes) {
		this.notes = notes;
	}
	public Site getSite() {
		return site;
	}
	public void setSite(Site site) {
		this.site = site;
	}
	public Function getFunction() {
		return function;
	}
	public void setFunction(Function function) {
		this.function = function;
	}
	public List<String> getRoleList() {
		return roleList;
	}
	public void setRoleList(List<String> roleList) {
		this.roleList = roleList;
	}
}
